#include "led_resource.h"
#include <linux/kernel.h>


static void led_dev_release(struct device *dev)
{
}

static struct led_resource board_A_led = {
	.pin = GROUP_PIN(3,1);
};

static struct resource resource[] = {
		{
				.start = GROUP_PIN(2,3),
				.flags = IORESOURCE_IRQ,
				.name = "rk3399_led_pin",
		},
		{
				.start = GROUP_PIN(0,5),
				.flags = IORESOURCE_IRQ,
				.name = "rk3399_led_pin",
		},
				
};


static struct platform_device board_A_led_dev = {
	.name = "rk3399_led",
	.num_resources = ARRAY_SIZE(resource),
	.resource = resource,
	.dev = {
	        .relase = led_dev_release,
	},
};

static int led_dev_init(void)
{
	int err;
	
	err = platform_device_register(&board_A_led_dev);
	
	return 0;
}

static void led_dev_exit(void)
{
	platform_device_unregister(&board_A_led_dev);
}

module_init(led_dev_init);
module_exit(led_dev_exit);
MODULE_LICENSE("GPL");

